<!-- include tpl=usercp/header title=我的评论 -->
<section class="container">
	<div class="row m-3">
		<div class="col-2">
			<!-- include tpl=usercp/left -->
		</div>
		<div class="col-10">
			<div class="card">
				<div class="card-header">
					我的评论
				</div>
				<table class="table mb-0">
				<thead>
				<tr>
					<th colspan="2">ID</th>
					<th>{lang星数}</th>
					<th>{lang主题}</th>
					<th>{lang快评}</th>
					<th>{lang时间}</th>
					<th width="50"></th>
				</tr>
				</thead>
				<!-- loop from=$rslist key=$key value=$value id=$tmpid -->
				<tr data-id="replylist_{$value.id}">
					<td>{$value.id}</td>
					<td>
						<!-- if $value.status -->
						<span><img src="{$tpl.dir}usercp/static/status1.png" /></span>
						<!-- else -->
						<span><img src="{$tpl.dir}usercp/static/status0.png" /></span>
						<!-- /if -->
					</td>
					<td>
						<!-- if $value.star == 1 --><div class="layui-tips" lay-tips="{lang一星}">★☆☆☆☆</div><!-- /if -->
						<!-- if $value.star == 2 --><div class="layui-tips" lay-tips="{lang二星}">★★☆☆☆</div><!-- /if -->
						<!-- if $value.star == 3 --><div class="layui-tips" lay-tips="{lang三星}">★★★☆☆</div><!-- /if -->
						<!-- if $value.star == 4 --><div class="layui-tips" lay-tips="{lang四星}">★★★★☆</div><!-- /if -->
						<!-- if $value.star == 5 --><div class="layui-tips" lay-tips="{lang五星}">★★★★★</div><!-- /if -->
					</td>
					<td>
						<div><!-- if $value.vtype == 'title' -->
						[{lang主题}]
						<a href="{$sys.www_file}?id={$value.tid}" target="_blank">{$value.title}</a>
						<!-- else -->
							<!-- if $value.vtype == 'project' -->[{lang项目}]<!-- /if -->
							<!-- if $value.vtype == 'cate' -->[{lang分类}]<!-- /if -->
							<!-- if $value.vtype == 'order' -->[{lang订单}]<!-- /if -->
							{$value.title}
						<!-- /if -->
						<!-- if $value.parent_id --><span class="red">[{lang引用}]</span><!-- /if -->
						</div>
						<div>[{lang内容}] {func phpok_cut $value.content 150 …}</div>
					</td>
					<td>
						<!-- loop from=$value.click_list key=$k value=$v id=$idxx -->
						<div style="margin-bottom:5px;white-space: nowrap;">{$v.title} <small>({$v.total})</small></div>
						<!-- /loop -->
					</td>
					<td>{func date 'Y-m-d H:i:s' $value.addtime}</td>
					<td>
						<input type="button" value="{lang删除}" onclick="$.comment.del({$value.id})" class="btn btn-sm btn-danger" />
					</td>
				</tr>
				<!-- loop from=$value.adm_reply key=$k value=$v id=$idxx -->
				<tr data-id="replylist_{$value.id}" id="adm_reply_{$v.id}">
					<td colspan="2">&nbsp;</td>
					<td colspan="5">
						<div class="m-1 p-1">
							<span class="text-danger">{lang管理员回复} - {$idxx.num}</span>
							<small class="text-body">{lang回复时间} {func date 'Y-m-d H:i:s' $value.addtime}</small>
							{$v.content}
						</div>
					</td>
				</tr>
				<!-- /loop -->
				<!-- /loop -->
				</table>
			</div>
			<div class="m-2"><!-- include tpl=usercp/pagelist --></div>
		</div>
	</div>
</section>
<!-- include tpl=usercp/footer -->